﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Willson.JsbManager.Idal;
using Willson.JsbManager.Entity;
using Willson.JsbManager.BllEntity;
using Willson.JsbManager.Comm;

namespace Willson.JsbManager.Bll
{
    public class BLLComm:BaseBLL
    {
        private ITableXtEmployee xt_employee_DAL = null;

        public BLLComm()
        {
            xt_employee_DAL = Reflect<ITableXtEmployee>.Create("DAL_table_xt_employee", "Willson.JsbManager.Dal");
        }

        public List<string> GetEmployeeList()
        {
            IEnumerator<string> ator = xt_employee_DAL.GetItemString("name").GetEnumerator();

            List<string> list = new List<string>();

            while (ator.MoveNext())
            {
                list.Add(ator.Current.ToString());
            }

            return list;

        }

    }
}
